package com.wlz.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin_wlz
 * @since 2022-04-14
 */
@Data
    public class Article {

      /**
     * ID
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 标题
     */
      private String name;

      /**
     * 内容
     */
      private String content;

      /**
     * 发布人
     */
      private String user;

      /**
     * 发布时间
     */
//      @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
      @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
      private Date time;



}
